package tmc.main;

import javax.swing.JButton;
import javax.swing.JCheckBox;

/**
 * Container for layer objects
 * @author Jacek
 *
 */
public class LayerObject {
	JCheckBox checkBox;
	JButton deleteButton;
	//TODO: layerObject powinien reprezentować wczytaną warstwę
	Object layerObject;
	
	public LayerObject(Object obj){
		layerObject = obj;
	}
	
	public LayerObject(JCheckBox chkBx, JButton delBttn, Object obj) {
		checkBox = chkBx;
		deleteButton = delBttn;
		layerObject = obj;	
	}
	/**
	 * @return the checkBox
	 */
	public JCheckBox getCheckBox() {
		return checkBox;
	}

	/**
	 * @param checkBox the checkBox to set
	 */
	public void setCheckBox(JCheckBox checkBox) {
		this.checkBox = checkBox;
	}

	/**
	 * @return the deleteButton
	 */
	public JButton getDeleteButton() {
		return deleteButton;
	}

	/**
	 * @param deleteButton the deleteButton to set
	 */
	public void setDeleteButton(JButton deleteButton) {
		this.deleteButton = deleteButton;
	}

	/**
	 * @return the layerObject
	 */
	public Object getLayerObject() {
		return layerObject;
	}

	/**
	 * @param layerObject the layerObject to set
	 */
	public void setLayerObject(Object layerObject) {
		this.layerObject = layerObject;
	}

	@Override
	public String toString() {
		return "object with no name";
	}

}
